package com.faithbj.common.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author jrn E-mail: rinanjin@gmail.com
 * @version 0.1 
 * 创建时间：2012-6-3 下午09:20:08
 * 类说明
 */
@Entity
@Table(name = "dictionary")
public class Dictionary extends BaseEntity
{
	private static final long serialVersionUID = 1L;

	private String typeCode;
	
	private String typeName;
	
	private String name;
	
	private String code;
	
	private Boolean hasChild;

	@Column(name = "type_code", nullable = true)
	public String getTypeCode()
	{
		return typeCode;
	}

	@Column(name = "type_name", nullable = false)
	public String getTypeName()
	{
		return typeName;
	}

	@Column(name = "name")
	public String getName()
	{
		return name;
	}

	@Column(name = "code")
	public String getCode()
	{
		return code;
	}
	
	@Column(name = "has_child", nullable = true)
	public Boolean getHasChild()
	{
		return hasChild;
	}

	public void setTypeName(String typeName)
	{
		this.typeName = typeName;
	}

	public void setCode(String code)
	{
		this.code = code;
	}

	public void setTypeCode(String typeCode)
	{
		this.typeCode = typeCode;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public void setHasChild(Boolean hasChild)
	{
		this.hasChild = hasChild;
	}
}
